from django.db import models


# Create your models here.
# 出版社(publisher)
class Publisher(models.Model):
    # 出版社名称
    name = models.CharField(max_length=20)
    # 出版社地址
    address = models.CharField(max_length=20)


# 图书(book)
class Book(models.Model):
    # 书名
    book_name = models.CharField(max_length=20)
    # 价格
    price = models.CharField(max_length=20)
    # 库存
    ku_cun = models.CharField(max_length=20)
    # 卖出数量
    mai = models.CharField(max_length=20)
    # 出版社
    publisher_name = models.CharField(max_length=20)


# 作者（author）
class author(models.Model):
    # 姓名
    author_name = models.CharField(max_length=20)
    # 作者性别
    gender = models.CharField(max_length=20)
    # 年龄
    age = models.CharField(max_length=20)
    # 书籍名称
    book_name = models.CharField(max_length=20)
